home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / mail.318 < prev    next >
Text File  |  1992-02-06  |  5KB  |  182 lines

  1. {\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;\f1\fmodern Courier;\f2\fmodern Ohlfs;}
  2. \paperw9840
  3. \paperh7820
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs24 nextmail\
  8. \
  9. Q:  I don't get my mail on a NeXT computer, but people with NeXT computers sometimes send me messages with NeXT Mail attachments.  How can I decipher these using Unix mail?\
  10. \
  11. A:  You can decode the mail by hand if you want to.  Note that this format is likely to change in a future release.  Follow these steps in a shell in order to read the message:\
  12. \
  13. 1. At the prompt in the 
  14. \b mail
  15. \b0  utility, type\
  16.  
  17. \f1     s
  18. \f0\i  
  19. \f1 foo
  20. \f0\i0  \
  21.  to save the message as a file named  
  22. \i foo
  23. \i0 .\
  24. \
  25. 2. Open the file 
  26. \i foo
  27. \i0  with your favorite editor.  After the mail header information is a line   with this format:\
  28.     
  29. \f1 begin 0
  30. \f0  
  31. \f1\i tarfile
  32. \f0\i0 \
  33. Remember the name that appears in place of 
  34. \i tarfile
  35. \i0 , because 
  36. \b uudecode
  37. \b0  will create a file with this name.\
  38.        \
  39. 3.  Decode the file  (this creates 
  40. \i tarfile
  41. \i0 , leaving 
  42. \i foo
  43. \i0  intact):\
  44.      
  45. \f1 uudecode
  46. \f0  
  47. \f1\i foo
  48. \f0\i0 \
  49.     \
  50. 4.  Change the permission on  
  51. \i tarfile
  52. \i0  and move it to the desired place.  The new filename must end with the suffix ".Z".  (Note that 
  53. \i tarfile
  54. \i0  begins with a period so it will be invisible with a normal 
  55. \b ls
  56. \b0  command; use 
  57. \b ls -a
  58. \b0  instead if you want to verify that it's there.)\
  59.     
  60. \f1 chmod 666
  61. \f0  
  62. \f1\i tarfile
  63. \f0\i0 \
  64.     
  65. \f1 mv 
  66. \i tarfile
  67. \i0  
  68. \i mailmsg.Z
  69. \f0\i0 \
  70.          \
  71. 5.  Uncompress it (this will create a file called 
  72. \i mailmsg
  73. \i0  and remove 
  74. \i mailmsg.Z
  75. \i0 ):      \
  76.     
  77. \f1 uncompress 
  78. \i mailmsg.Z
  79. \f0\i0 \
  80. \
  81. 6.  For the final step,  
  82. \i mailmsg
  83. \i0  should be in a directory by itself so that when the message is unparsed the various files are easy to find.  \
  84.     
  85. \f1 mkdir 
  86. \i newdir
  87. \i0 \
  88.     mv 
  89. \i mailmsg newdir
  90. \i0 \
  91.     cd 
  92. \i newdir
  93. \i0 \
  94.     tar xvf 
  95. \i mailmsg
  96. \i0 \
  97.  
  98. \f0 \
  99. The 
  100. \b tar
  101. \b0  command will show you the files it has unparsed.  One of them is called 
  102. \i index.rtf
  103. \i0 .  This is the body of the message in Rich Text Format (RTF).  The rest of the files and directories are the attachments.  Hopefully they are files that can be opened on the receiving system.   If you have an editor that can read RTF files, use it to open 
  104. \i index.rtf
  105. \i0  .  It will have the body of the text.  There will be no text if just an attachment was sent.  \
  106. \
  107. The rest of this NextAnswers entry discusses what to do if your editor can't read RTF files.\
  108. \
  109. Open
  110. \i  index.rtf
  111. \i0   with your editor.   Much of the text in this file is RTF formatting.  The curly braces and words starting with `\\' are RTF directives.  You can ignore them for the most part; they introduce formatting and text style information.  The only interesting directive is  
  112. \i \\attachment#
  113. \i0 .  It is the placeholder for an attachment that has been placed in the directory.  The group 
  114. \i \{/attachment# filename \}
  115. \i0   is the information for the attachment.\
  116. \
  117. In the following example, the 
  118. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0 the line
  119. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0 :
  120. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0 \
  121. \{\\attachment0 attachmentName\
  122.  
  123. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600  is the attachment information.  This attachment is the file called 
  124. \i attachmentName
  125. \i0 .   There is no regular text in this message.\
  126.  
  127. \f1\fs20\gray333 \
  128. \{\\rtf0\\ansi\{\\fonttbl\\f0\\fmodern Courier;\\f1\\fmodern Ohlfs;\}\
  129. \\margl120\
  130. \\margr120\
  131.  
  132. \gray0 \{\\attachment0 attachmentName\
  133. \}
  134. \gray333 \
  135. \{\\f1\\fs20\\fi0\\li0\\ql\\gray0 \\\
  136. \}\
  137. \}
  138. \f0\fs24\gray0 \
  139. \
  140.  
  141. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0 In the following example, there is only text.  The English sentences are the words you are interested in:\
  142.  
  143. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600 \
  144.  
  145. \f1\fs20\gray333 \{\\rtf0\\ansi\{\\fonttbl\\f1\\fmodern Ohlfs;\\f0\\fswiss Helvetica;\\f3\\fmodern Courier;\\f2\\froman Times;\}\
  146. \\margl120\
  147. \\margr120\
  148. \{\\f1\\fs20\\fi0\\li0\\ql\\gray0 
  149. \gray0 This is some rich text.
  150. \gray333 \}\
  151. \{\\f0\\fs20\\fi0\\li0\\ql\\gray0 
  152. \gray0  This is some helvectica.
  153. \gray333 \\\
  154. \\\
  155.  
  156. \gray0 This is more helvetica.
  157. \gray333 \\\
  158. \}\
  159. \{\\f0\\fs20\\fi0\\li0\\ql\\gray0 \\\
  160. \}\
  161. \{\\f2\\b\\fs20\\fi0\\li0\\ql\\gray0
  162. \gray0  This is times bold.
  163. \gray333 \}\
  164. \{\\f0\\fs20\\fi0\\li0\\ql\\gray0
  165. \gray0  .
  166. \gray333 \\\
  167. \\\
  168.  
  169. \gray0 And here's another line of text.
  170. \gray333 \\\
  171. \}\
  172. \}
  173. \f0\fs24\gray0 \
  174. \
  175. \
  176. QA318\
  177. \
  178. Valid for 1.0 \
  179. Valid for 2.0\
  180. \
  181.  
  182.